//
//  TokenView.h
//  TabulaImaginarius2
//
//  Created by TA2 on 5/23/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/CATiledLayer.h>
#import "Map.h"
#import "LoadedImages.h";
#import "TiledLayer.h"


@class TokenProtocol;
@class NetworkController;
@class NetworkProtocol;

@interface TokenView : UIView {
    Map					*map;
	CGPoint				lastPoint;
	CGPoint				currentPoint;
	CGPoint				originalTokenPoint;
	int					scale;
	CGSize				tileSize;
	int					steppingVar;
	BOOL				addTokensIsActivated;
    BOOL				addObjectsIsActivated;
    NSString            *protocolId;
}

@property (nonatomic) int scale;
@property (nonatomic) CGPoint currentPoint;
@property (nonatomic) CGSize tileSize;
@property (nonatomic, retain) Map *map;
@property (nonatomic) BOOL addObjectsIsActivated;
@property (nonatomic) BOOL addTokensIsActivated;
@property (nonatomic, retain) NSString *protocolId;

- (id)initWithMap:(Map *)map withTileSize:(CGSize)size withScale:(int)scale;
- (CGPoint)convertCoordsToGridCoords:(CGPoint)coords;

@end
